import { FC } from "react";
import {Input, Space, Typography} from "antd";
const {Title} = Typography
export type questionInput_propsType = {
    title?:string,
    placeholder?:string,
    islock?:boolean
    onchange?:(newprops:questionInput_propsType)=>void
}

export const questionInput_defaultValue:questionInput_propsType = {
    title:'输入框标题',
    placeholder:'请输入'
}

const QuestionInput:FC<questionInput_propsType> = (props)=>{
    const {title,placeholder} = {...questionInput_defaultValue,...props}
    return <>
        <Space direction='vertical' style={{width:'100%'}}>
            <Title level={3} style={{margin:0}}>{title}</Title>
            <Input placeholder={placeholder} ></Input>
        </Space>
    </>

}

export default QuestionInput